package com.bjpowernode.boss.convert;

import com.bjpowernode.boss.db.domain.UserInfo;
import com.bjpowernode.boss.web.models.vo.UserInfoVo;
import org.mapstruct.*;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface UserInfoConvert {
    List<UserInfoVo> userInfoVos(List<UserInfo> userInfos);
    @Mappings({
            @Mapping(source = "createTime",target="createTime",dateFormat = "yyyy-MM-dd HH:mm:ss")
    })
    UserInfoVo toUserInfoVo(UserInfo userInfo);
}
